﻿using FluentValidation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IdentityServer.Infrastructure.Validators
{
    public record EmailRequest(string email);
    public class EmailRequestValidator : AbstractValidator<EmailRequest>
    {
        public EmailRequestValidator() 
        {
            RuleFor(x => x.email).NotEmpty().NotNull();
        }
    }
}
